home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group03a.txt / 000064_icon-group-sender_Fri Mar 28 08:11:52 2003.msg < prev    next >
Internet Message Format  |  2003-12-22  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id h2SFBpM17054
  4.     for icon-group-addresses; Fri, 28 Mar 2003 08:11:51 -0700 (MST)
  5. Message-Id: <200303281511.h2SFBpM17054@baskerville.CS.Arizona.EDU>
  6. X-Sender: whm@mail.mse.com (Unverified)
  7. Date: Fri, 28 Mar 2003 00:47:21 -0700
  8. To: voice_of_reason@australia.edu (Quiet Voice)
  9. From: "William H. Mitchell" <whm86@mse.com>
  10. Subject: Re: Befuddled by logic and an error message.....
  11. Cc: icon-group@cs.arizona.edu
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14.  
  15. Are you running on Windows or UNIX?  I found that this program:
  16.  
  17. procedure main()
  18.     f := open("x","b")
  19.     line := read(f)
  20.     write(f, *line)
  21. end
  22.  
  23. runs ok on UNIX (SunOS 5.9) with Icon 9.4.1 (&version) but on NT4SP6a with
  24. Icon 9.3.2 I get this:
  25.  
  26. Run-time error 214
  27. File io.icn; Line 4
  28. input/output error
  29. offending value: 68
  30. Traceback:
  31.    main()
  32.    write(file(x),68) from line 4 in io.icn
  33.  
  34.  
  35. But I've got a broader question: Why is the temp file necessary?  Why not
  36. just hold those edits in memory?  Are the files multi-megabytes?
  37.